import {
	mapState,
	mapMutations
} from 'vuex'
import { formatDateByTimestamp } from '@/utils/utils.js'
export default {
	computed: {
		...mapState({
			appTheme: state => state.app.appTheme,
			appType: state => state.app.appType
		}),
	},
	methods: {
		...mapMutations([
			'switchAppType',
		]),
		
		formatTimestamp(timestamp, fmt) {
			return formatDateByTimestamp(timestamp, fmt);
		},
	}
}
